<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
<title></title>
</head>
<body>
<h1>El 标签</h1>
\${1+1}=${1+1}


<%  
	out.println("<h1>Request</h1>");
	out.println(request.getAttributeNames()+"<br>");
	out.println("ContentLength:"+request.getContentLength()+"<br>");
	out.println("CharacterEncoding:"+request.getCharacterEncoding()+"<br>");
	out.println("ContentType:"+request.getContentType()+"<br>");
	out.println("ServletInputStream getInputStream  file upload"+"<br>");
	out.println("getParameter(foo):"+request.getParameter("foo")+"<br>");
	out.println("Enumeration:request.getParameterValues(String name)"+"<br>");
	out.println("String[]:request.getParameterValues(String name)"+"<br>");
	out.println("getProtocol():"+request.getProtocol()+"<br>");
	out.println("getScheme():"+request.getScheme()+"<br>");
	out.println("getServerName:"+request.getServerName()+"<br>");
	out.println("getReader():"+request.getReader()+"<br>");
	out.println("getRemoteAddr():"+request.getRemoteAddr()+"<br>");//返回发送此请求的客户端IP地址 
	out.println("getRemoteHost():"+request.getRemoteHost()+"<br>");// 返回发送此请求的客户端主机名
	out.println("setAttribute(String key,Object obj)"+"<br>");
	out.println("getRealPath(String path):"+request.getRealPath("test")+"<br>");// 返回一虚拟路径的真实路径
	
	out.println("<h1>Response</h1>");
	out.println("getCharacterEncoding()"+response.getCharacterEncoding()+"<br>");
	out.println("ServletOutputStream getOutputStream()<br>");
	out.println("PrintWriter getWriter():"+response.getWriter()+"<br>");
	out.println("setContentLength(int Len)<br>");
	out.println("void setContentType(String type)<br>");
	out.println("sendRedirect(java.lang.String location <br>");
	
	out.println("<h1>Session</h1>");
	out.println("long getCreationTime():"+session.getCreationTime()+"<br>");
	out.println("String getId():"+session.getId()+"<br>");
	out.println("long getLastAccessedTime()"+session.getLastAccessedTime()+"<br>");
	out.println("int getMaxInactiveInteval()"+session.getMaxInactiveInterval()+"<br>");//返回两次请求间隔多长时间此SESSION被取消(ms)
	out.println("Sting[] getValueNames()"+session.getValueNames()+"<br>");
	//out.println("void invalidate():"+session.invalidate());
	out.println("boolean isNew():"+session.isNew()+"<br>");
	out.println("void removeValue(String name)<br>");// 删除SESSION中指定的属性 
	out.println("void setMaxInactiveInterval()<br>");//设置两次请求间隔多长时间此SESSION被取消(ms) 
	
	out.println("<h1>out</h1>");
	out.println("void clear()<br>");
	out.println("void clearBuffer()<br>");
	out.println("void flush()<br>");
	out.println("int getBufferSize():"+out.getBufferSize()+"<br>");
	out.println("boolean isAutoFlush():"+out.isAutoFlush()+"<br>");
	out.println("void close()<br>");
	
	out.println("<h1>page  linke this page</h1> ");
	out.println("class getClass:"+page.getClass()+"<br>");
	out.println("int hashCode():"+page.hashCode()+"<br>");
	out.println("boolean equals(Object obj)<br>");
	out.println("void copy(Object obj)<br>");
	out.println("Object clone()<br>");
	out.println("String toString()<br>");
	out.println("void notify()<br>");
	out.println("void notifyAll()<br>");
	out.println("void wait(int timeout)<br>");
	out.println("void wait()<br>");
	out.println("void enterMonitor() <br>");
	out.println("void exitMonitor()<br>");
	
	out.println("<h1>application</h1>");
	out.println("Object getAttribute(String name)<br>");
	out.println("Enumeration getAttributeNames()<br>");
	out.println("void setAttribute(String name.Object obj)<br>");
	out.println("void removeAttribute(String name)<br>");
	out.println("void getServerInfo():"+application.getServerInfo()+"<br>");
	out.println("String getRealPath(String path):"+application.getRealPath("test")+"<br>");
	out.println("ServletContext getCOntext(String uripath)<br>");
	out.println("int getMajorVersion()"+application.getMajorVersion()+"<br>");
	out.println("int getMinorVersion()"+application.getMinorVersion()+"<br>");
	out.println("String getMimeType(String file):"+application.getMimeType("/test")+"<br>");
	out.println("URL getResource(String path):"+application.getResource("/test")+"<br>");
	out.println("InputStream getReourceAsStream(String path)<br>");
	out.println("RequestDispatcher getRequestDispatcher(String uripath)<br>");
	out.println("Servlet getServlet(Sring name):"+application.getServlet("test")+"<br>");
	out.println("Enumeration getServlets()"+application.getServlets()+"<br>");
	out.println("void log(String msg)<br>");
	application.log("This is application log test");
	out.println("void log(Exception exception,String msg)<br>");
	out.println("void log(String msg,Throwable throwable)<br>");
	
	out.println("<h1>exception</h1>");
	
	out.println("String getMessage()<br>");
	out.println("String toString()<br>");
	out.println("void printStckTrace()<br>");
	out.println("Throwable FillInStackTrace()<br>");
	
	
	out.println("<h1>pageContext</h1>");
	out.println("pageContext对象提供了对JSP页面内所有的对象及名字空间的访问，也就是说他可以访问到本页所在的SESSION，也可以取本页面所在的application的某一属性值，他相当于页面中所有功能的集大成者，它的本类名也叫pageContext。 <br>");
	out.println("JspWriter getOut()<br>");
	out.println("HttpSession getSession()<br>");
	out.println("Object getPage()<br>");
	out.println("ServletRequest getRequest()<br>");
	out.println("ServletResponse getResponse()<br>");
	out.println("Exception getException()<br>");
	out.println("ServletConfig getServletConfig()<br>");
	out.println("ServletContext getServletContext()<br>");
	out.println("void setAttribute(String name,Object obj)<br>");
	out.println("Object getAttribute(String name)<br>");
	out.println("Object getAttribute(String name,int scope)<br>");
	out.println("Object findAttribute(String name)<br>");
	out.println("void removeAttribute(String name)<br>");
	out.println("void removeAttribute(String name.int scope)<br>");
	out.println("int getAttribute(String name)<br>");
	out.println("Enumeration getAttributeNamesInScope(int scope)<br>");
	out.println("void release()<br>");
	out.println("void forward(string relativeUrlPath)<br>");
	out.println("void include(String relativeUrlPath)<br>");
	
	out.println("<h1>config</h1>");
	out.println("config对象是在一个Servlet初始化时，JSP引擎向它传递信息用的，此信息包括Servlet初始化时所要用到的参数（通过属性名和属性值构成）以及服务器的有关信息（通过传递一个ServletContext对象） <br>");
	out.println("SerlvetContext getServletContext()<br>");
	out.println("String getInitParameter(String name)<br>");
	out.println("Enumeration getInitParameterNames()<br>")	;
	
	
	
%>
</body>
</html>